<script setup lang="ts">
import { ref } from "vue";

const userInfo = ref({});
fetch("/api/userInfo")
  .then((value) => value.json())
  .then((res) => {
    userInfo.value = res;
  });
</script>
<template>
  <h2>子应用Home</h2>
  <h4>服务端获取到的用户信息：{{userInfo}}</h4>
</template>
